/*
 * @Author: your name
 * @Date: 2020-03-26 09:41:08
 * @LastEditTime: 2020-03-26 09:41:10
 * @LastEditors: Please set LastEditors
 * @Description: 淘宝圈
 */

// 登录
export const getLogin = "http://www.tbquan88.com/1/user/login_handler"
// 获取绑定淘宝号
export const getBindedAccount = "http://www.tbquan88.com/1/pages/binded_account"
// 获取服务器返回 challenge
export const getCaptcha = "http://154.204.41.165/captcha/get"
// 派单
export const getTaskList = "http://www.tbquan88.com/1/task/engine_start_handle?task_type=DIANFU"
// 查询派单状态
export const getUserStatus = "http://www.tbquan88.com:9503/third/userTaskStatus"

//appKey
export const app_key = 'c707d0389c1fc93cfdd914f46bd8e124'

// challenge
export const challenge = 'bbb2dfbfdf237b40c3b88fb1c1bc4844'

export function ajaxFun(url, param, fun) {
    window.api.ajax({
        url: url,
        method: param.type,
        headers: {
            "Content-Type": "application/x-www-form-urlencoded",
            'X-Requested-With': 'XMLHttpRequest'
        },
        dataType: param.dataType || 'json',
        returnAll: false,
        data: {
            values: param.data
        }
    }, fun)
}